package com.wx;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.core.env.Environment;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloWorldController {

    @Autowired
    Environment environment;

    @RequestMapping("/info")
    public String info(){
        return "hello wx you are best"+" "+environment.getProperty("url");
    }
}

/**
 * 为什么端口号默认是8080
 * 可以通过配置文件修改端口号
 *
 * 热部署没生效？
 */
